package com.gitee.wsl.doc.prosemirror.transform.map

// Recovery values encode a range index and an offset. They are represented as numbers, because tons
// of them will be created when mapping, for example, a large number of decorations. The number's
// lower 16 bits provide the index, the remaining bits the offset.
//
// Note: We intentionally don't use bit shift operators to en- and decode these, since those clip to
// 32 bits, which we might in rare cases want to overflow. A 64-bit float can represent 48-bit
// integers precisely.


const val DEL_BEFORE = 1
const val DEL_AFTER = 2
const val DEL_ACROSS = 4
const val DEL_SIDE = 8

